﻿Imports Phila
Imports Phila.Sql
Imports Phila.CommonClasses

Public Class Philadmin
    Inherits System.Web.UI.MasterPage

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Try
            If Session.Item("UserID") Is Nothing Then
                Response.Redirect("Login.aspx")
            Else
                lblUser.Text = Session.Item("Username")
            End If
        Catch ex As Exception

        End Try
    End Sub

    Private Sub btnLogout_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogout.Click
        Session.Item("UserID") = ""
        Session.Item("UserName") = ""
        Session.Clear()
        Response.Redirect("Login.aspx")
    End Sub
End Class